package com.express.ExpPercentage.bean;

import com.aqgj.util.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "exp_percentage")
public class ExpPercentage implements BaseEntity{

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;//

    /**
     * 比例json信息如：{"platformScale":10,"companyScale":5,"rejectedScale":10,"insuranceScale":1,"initPrice":5},
     * platformScale平台抽成，companyScale快递公司抽成，insuranceScale运费险购买比例,rejectedScale赔付运费比例,initPrice起步价
     */
    private String percentageScale;

    private Date modifyTime;//最近一次修改时间

    private String remake;//修改详情信息

    private String mfUserId;//修改用户ID

    @Override
    public void setId(String id) { this.id = id; }
    public void setPercentageScale(String percentageScale) {  this.percentageScale = percentageScale; }
    public void setModifyTime(Date modifyTime) { this.modifyTime = modifyTime; }
    public void setRemake(String remake) { this.remake = remake; }
    public void setMfUserId(String mfUserId) { this.mfUserId = mfUserId; }

    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId(){
        return this.id;
    }
    @Column(name ="percentage_scale",unique=false,nullable=true,insertable=true,updatable=true,length=255)
    public String getPercentageScale() { return percentageScale; }
    @Column(name ="modify_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public Date getModifyTime() { return modifyTime; }
    @Column(name ="remake",unique=false,nullable=true,insertable=true,updatable=true,length=255)
    public String getRemake() { return remake; }
    @Column(name ="mf_user_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getMfUserId() { return mfUserId; }

}
